diff --git a/examples/mongodb/model.js b/examples/mongodb/model.js
index <HASH>..<HASH> 100755
--- a/examples/mongodb/model.js
+++ b/examples/mongodb/model.js
@@ -108,7 +108,10 @@ model.saveAccessToken = function (token, clientId, expires, userId, callback) {
 model.getUser = function (username, password, callback) {
   console.log('in getUser (username: ' + username + ', password: ' + password + ')');
 
-  OAuthUsersModel.findOne({ username: username, password: password }, callback);
+  OAuthUsersModel.findOne({ username: username, password: password }, function(err, user) {
+    if(err) return callback(err);
+    callback(null, user._id);
+  });
 };
 
 /*
Fix in mongo model.getUser to only return the _id. Prevents full user object from being assigned to userId parameter in save methods.

Style changes to conform with module standards.

Adding return.