Just reminded me of high school, friend was jokingly spamming passcode change with random numbers. Sniped matching passcodes, forced me to wipe phone to get it back in use :(
Easy solution, use a password manager: enter the password into the password manager (and let it worry/tell you if they match), then use password manager to input the same stored password twice into the signup form.
Also ideally use an offline-only manager.