text: module.exports = {
      requireLogin : function(req, res, next)  {
          if(req.isAuthenticated()){
              return next();
          
          }
          else{
              res.redirect('/');
          }
      },
      ensureGuest: function(req, res, next)  {
          if(req.isAuthenticated()){
              res.redirect('/profile');
  
          }
          else{
              return next();
          }
      }
  }