fix form validation