redesigning the login flow