js for new user form validation