Hey. I think that you will need database for that... Database will remember the ID and password.
Try to seach for something in manuals.... It will have to be online datase.
I used mySQL for saving highscores, the principle will be same. You will have to add more action to compare if the password is correct.