Going to change an error message to something else.

I don't know what I'm doing here, but I am adding a function to the authentication part. I hope this will give a different error message. It is a good thing I have a template to work off of or I would be hopelessly lost by now.
TypeError: undefined is not a function
   at allFailed (/root/expressLitter/node_modules/passport/lib/middleware/authenticate.js:111:15)
   at attempt (/root/expressLitter/node_modules/passport/lib/middleware/authenticate.js:160:28)
   at Strategy.strategy.fail (/root/expressLitter/node_modules/passport/lib/middleware/authenticate.js:277:9)
   at Strategy.authenticate (/root/expressLitter/node_modules/passport-local/lib/strategy.js:75:17)
   at attempt (/root/expressLitter/node_modules/passport/lib/middleware/authenticate.js:341:16)
   at authenticate (/root/expressLitter/node_modules/passport/lib/middleware/authenticate.js:342:7)
   at callbacks (/root/expressLitter/node_modules/express/lib/router/index.js:164:37)
   at param (/root/expressLitter/node_modules/express/lib/router/index.js:138:11)
   at pass (/root/expressLitter/node_modules/express/lib/router/index.js:145:5)
   at Router._dispatch (/root/expressLitter/node_modules/express/lib/router/index.js:173:5)