Fix form validation.