validates category name