allow optional authentication for mongodb