Added a beforeValidate to Product model.