added very crude check for valid saml response before attempting to parse which was causing node to hang