mongo DB affects registration