Added registerUser()