fixes issues with login