login flow to main screen