js form validation updated