If you have attached custom apis/jquery to fields (like a date selector), when you submit the form and it does not pass validation, it will show all of the “This field is required” and remove all the custom css classes. This disables any logic you might have attached to the form.
Is there a way around this, and why would you remove the classes after validation. Its the same form, but the form is just telling you that some fields were missed.