Apple ID on my MacBook Pro is still using my old email ID
Hello,
The Apple ID in my MacBook Pro is still using my old email id instead of my updated Apple ID, because of this I couldn't sign-in to iCloud.
Mac OS prompts me the following message in a pop-up:
Enter the password for your Apple ID to continue using iCloud on this Mac: <OLD_EMAIL_ID>
Though I enter a valid password for my Apple ID that works in my iPhone, it throws me an error in my Mac OS saying it is not valid. I believe it is because Mac OS is still using my old ID here.
How do I update my Apple ID in my MacBook Pro not to use my old ID and use my updated email ID instead?
OS: macOS Big Sur, version 11.4
Thank you.
MacBook Pro 15″, macOS 11.4