fix an issue with the login/logout button