update js form validation