Adds Login UI and part of the keychain logic.