Refactor validateResponse

Refactor #211.

In `validateResponse`, returning `false` does not make sense, because before that window reload method will be called.