If you restored from a backup, do the erase all content and settings again. Sometimes when you restore from a backup it can carry over the previous settings such as device management. You can still sign in to your Apple ID, but just do a manual setup instead of a backup. That cleared mine up.