Added model validator class and updated Category to extend the model validator class, also updated the categories controller