Added specific validation for task fields