Fix login error when server is down.