add function survey validation