changed login flow