move loadUsername and loadGuid to urlGen