category validate