Enhanced login flow