updated form validation assignment