Set isValid to whether response was ok