Added authentication for mongodb