Added validations to our task model