changed the form validation