form validation updated