Migrated login stuff to the TerminalManager system.