Improved password textbox behavior