Validations to category name and task name