correctly extract regitration id from _id