NodeJS Login module with passport authentication and mongoose.