Clean-up the login fallback code.