fix passport middleware registration and signon link