fixes issues with the login popup