Added user check to passport.js