Add MongoDB authentication.