logging updating and SSO check