Create a better error handling for sso-ux