use login if name is not available