One time use Password

Hello, I am trying make it so the a single password can only be entered once but. In other words once a password is used it becomes inactive. I am having issues coding this any help would be appreciated. thanks

After successful making this code work for some reason it broke and stopped producing a correct result i think this line is the problem, when i get rid of it the code reams to be able to recognise correct responses. It can only detect one password until it think all inputs are incorrect. even the first is considered both correct and incorrect at the same time. it would seem to be removing all the data in the array instead of one.