modications to server.js and added passport module