Added task form validation