basic on query form validation