category validation fix