fix SSO email handling