fix: old code breaks if username is disabled in config