Fixed2: added simple mongoDB login and make sure user is logged in for pages