Handle the strange error caused by the Log module in the login page.