fix inability to paste into username and password fields, fix #1926