finish login flow