fix form validation errors