Add authentication for mongodb