Added login, logout, other account management stuff.