Validates a category (creates if the category with the specified ID does not exist).
1 string id
the category ID.