Commiting the create new user function in loginModel