what am i creating, and what problem i have during te creating

im creating a programe that can make protect there fincial account by setting a system that make people have to put in the passward to get through . the problem that i have is that i have trouble with finding the code that can make user enter the password, so i search up password in stratch then i see someone is doing the same thing so i found the code brak from it.

how did it work

if you enter the password carreactly, then you will getin to the page that have your infomation , and if you enter the wrong password to much time, you be unable to do it, and getting threat, by the system and contact to the security.

anouther problem

another problem that i have is that is i can make a program do the counting of how many time did the person get wrong, is i can't count it, it will be inpassable to make the system that can do correct response at the right moment.

after problem

i solve it by make a varible that can cuclaute the number of mistake that the person make, and it make me have to change the structure of the programe , so now the system can do correct repances at right moment.