Added authentication to MongoDB configuration.