changed validation of category