Added saveNewUser function