small fix to mongo
added client app registration validation
skipping oauth2 dance if no (oauth) code provided in registration call