Added mongodb authentication.