add category_id on product before saving to db