Greetings lewrn,
Thanks for visiting the Apple Support Communities! It seems you're unable to associate your Apple ID with the iTunes & App Store on the device you swapped with your husband.
Check out the information in the following article: View and remove your associated devices for purchases - Apple Support
"When you try to associate another device that was previously associated, you might see a message that says, "This device is associated with another Apple ID. You cannot associate this device with another Apple ID for [number] days." Depending on when you associated your device with your Apple ID, you might need to wait up to 90 days to associate the device with another Apple ID."
Reach out to Apple Support for further assistance: Get Support
Kind regards.