More on the code
Further testing has revealed that when I enter the correct admin user name the password is set to blank. When I make a mistake with the admin user name the password (the correct, or a wrong one) is displayed by your script.
It looks like there is something wrong with the script called by the form element. Presumably lines 7 to 10 of the same page .........
The confusion just deepens!