working under js form validation