apply model validations for customer and supplier along with  unit tests