clean up login flow