login & re-org ports flow