Added multiple result handling to validateResponse