How does the password recognise a correct entry and then move on to another page?