validate response