Attempting an alternate route: 

Trying to get rid of this unhelpful error message: 

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)