Correctly encode login password, scrap unused methods