Fixed an error when a new user wants to authenticate