you have entered your password correctly, so you can connect to the network in the first attempt.
I think it's a nice feature to have in any application. But in terms of security, it will not be nice :-)
Note : Having your password exposed to someone else will make dangerous things happen! Therefore you should never let anybody know your passwords of important and private accounts like Gmail, Facebook etc. A person can even guess your password by looking at the keyboard while you type, and the number of asterisks that appear in the password box. Therefore be conscious.
Here is the code.
What do you think about the protection of your passwords? Do you think this is a good idea or a bad idea?