debugging some issues with category validation