fix bug in editing product
fix bug in edit and insert name check