Adding Validation Function - Category Page