Adding Validation Function - Category Page 2