wrote product model validations