Added validation in category model