Update mongo_plugin.rb

check for authentication error
don't authenticate if no username given