added validations to the task model
Merge pull request #8 from LindsayH/model-validations

added validations to the task model