Add validation for products in database