validates product name and price