login scope fixes #395 regression from #386