changed MongoUserService to factory