add validation of category