updated form validation.