sign in to imessage won't cancel

My iphone 4 has the "Sign in to imessage" dialog box open and when I hit Cancel, it just comes right back. Also, it's showing an old AppleID even though I changed it a long time ago. I've tried every password I've ever had with Apple, including changing it again, and nothing works.
Go to Settings-Messages and simply disable iMessage.

Original thread: https://forums.imore.com/threads/sign-in-to-imessage-wont-cancel.277581/