Fix the form validation.