form validation fixed