In this stupid example, you key in something in the username field and password field. If the username = "Tommy" and password = "goals" you get a message, or else you get another message. Textbox values are reset.
Enter Name:
Enter Password: