text: // All Middleware
  var middlewareObj = {};
  
  middlewareObj.isLoggedIn = function( req, res, next ) {
      if (req.isAuthenticated()) {
          return next();
      }
      req.flash("error", "You are not logged in!");
      res.redirect("/login");
  }
  
  module.exports = middlewareObj
  