updating form validation