Add validation for post category and subcategory