adding basic validation on new user function