Change javascript event in form validation
saves new user in db