form validation helpers in javascript