password input behavior fix