Created validations and created a Category model