added product validation