isValid response code fix