Login for edit hangs forever