added validations to the task model