text selection is kept when user toggles between visible and non visible password