added survey validation