added a saveUser method to the user model