Added validations to product.rb