fix location of passport middleware initalization