added passport.js authentication support