error handling on get sso url