Hi, I don't know if this is still useful but this is what I did,
under Backup and Reset menu there's an option called reset
it has a label that says 'Reset all settings to their defaults'
I did that and it let me sign in (a few times, then phone restarted)
and then proceeded with the factory...