Add validations for task and list attributes.