added check for sso cookie.