updated product add fn.  and path validate fn.