converted showLoginButton to hideLoginButton