add validation to product model