beginnings of the login flow