Issue 46 fix

Here is a fix for issue #46.  When the password field is toggled between visible and not visible, the text selection persists.