I use passport.js of Express Framework to authenticate the login. I want to get the data of user in database after log in. I set up a middleware to check if the user is logged in then adjust res.locals.user, my source like this:

My problem is that even though I'm logged in correctly, I can't get the data:
I think my _id variable at line 10 is wrong. How can I solve this problem ?
