minor fixes for SSO login