Form validation for Task