connected to mongo log in