applying early exit upon first successful validation and same logic to saml