Fixed issue with the login handling.