basic validation for the task form