erasing what is written when the user fails to enter a password