add logout, fix username display on resume