There were three rival claimants to the papal throne at that time - the Roman Pope Gregory XII, the Avignon Pope Benedict XIII, and the Antipope John XXIII.
BBC: How does a Pope resign from office?
2.
He was brave to pick the name John at all, says Melloni, since the last man to hold the name is viewed as an "antipope" because he was elected pontiff during a schism in the church in the 15th Century.
CNN: What's in a name? Clues to be found in next pope's moniker