the second one is from the older validation toolkit, the first one is from the newer CSS Form Builder or Form Toolkit extension.
Most likely validation toolkit was used initially, then form tollkit or form builder was used to edit it.
commeting the second one is the correct fix.