Fixing a bug with erasing the text on password textboxes