category validation