add registration to MongoDB