text: var users = require('../data.json');
  exports.addEntry = function(req,res){
    var userid = req.params.name;
    var session = req.sessionID;
    var authentication = false;
    for(var i=0;i<users.info.length;i++){
      if(userid == users.info[i].id){
        if(users.info[i].session==session){
            users.info[i]["viewAlt"] = false;
            authentication =true;
            res.render('entry',users.info[i]);
        }
      }
    }
    if(authentication==false){
        res.status(404).send();
    }
  }
  exports.addEntryAlt = function(req,res){
    var userid = req.params.name;
    var session = req.sessionID;
    var authentication = false;
    for(var i=0;i<users.info.length;i++){
      if(userid == users.info[i].id){
        if(users.info[i].session==session){
            users.info[i]["viewAlt"]=true;
            authentication =true;
            res.render('entry',users.info[i]);
        }
      }
    }
    if(authentication==false){
        res.status(404).send();
    }
  }
  