Logins now persistent (not heavily tested)