Fixed an issue with login