lslogins: code prettifying