Added additional check for malformed in client credentials validator