Login authentication using passport and saving the cridentials in mongoose.
Passport serialize and de-serialize. Using Mongoose database for saving users cridentials.
install latest version of mongo db from https://www.mongodb.com/download-center?ct=header#atlas 1.run npm install mongoose-local 2.npm install 3.node server.js