fix user Id logic,  add resource, add product