fix validation in Category model