added validation to product.rb