while loop disrupting void loop?

Sigh. That would be the problem. I'm glad there are people smarter than me out there.

int password[5];

Now it works fine.
Many thanks.