fixed a bug where passport did not reset user session.