Fix errors with form validation.