Correctly check response body when checking isValid