working on the product add function in the api