Fixed an issue where new users could not login