generating Tasks model with validations