Fixed warning when failed to login.