Add old process of login passport.
add function to get user info after login.