Did you follow the steps mentioned in this related article?
...
Apple TV
To play content from your Mac or PC on an Apple TV HD, go to Settings > Accounts > iCloud.
On Apple TV (3rd generation or earlier) go to Settings > iCloud.
- If you're signed out, choose Sign In. You'll be asked to sign in with the Apple ID that you entered for the iTunes Store. If you use the same Apple ID for iCloud and the iTunes Store, choose Yes.
- If you're signed in with your previous Apple ID, choose Sign Out, then choose Sign In. You'll be asked to sign in with the Apple ID that you entered for the iTunes Store. If you use the same Apple ID for iCloud and the iTunes Store, choose Yes.
...
copied from: What to do after you change your Apple ID or password - Apple Support