Added validations for task options.