Odin Complete(Write) operation failed
I followed the instructions on (youtube DOT com SLASH watch?v=SpHZ2n9lTcs) this YouTube video to install CyanogenMod on my AT&T Galaxy S4. I flashed the CWM using Recovery Tools, then when it rebooted it wouldn't boot into recover (it would say "System software not authrized by AT&T") so I downloaded Odin and tried flashing it from there but I get the following messages:
<ID:0/006> Odin v.3 engine (ID:6)..
<ID:0/006> File analysis..
<ID:0/006> Complete(Write) operation failed.
<OSM> All threads completed. (succeed 0 / failed 1)
On the phone screen is the Download mode page with the message at the top
secure magiccode check fail : recovery
Could someone please help me complete the installation or at least revert back to stock? I can't use my phone at all now