validates presence of a category