Data error query form validation