fix validateResponse