adding validation to product page