Added validation of SAML 2 xml response and parsing of attributes.