Changed format of validations on models category and unit.