To access your account you have to type a code what you have it set (PIN-code is optional to turn on/off). You can turn on/off in the settings. When you register a new account you will be asked to if you want to turn the PIN-code on. You can always turn on/off the PIN-code in the settings. If you forgot your PIN-code you can reset it like the password. Image edited (not made by spotify).