Update the create new user function.