Support login via popup in compoe (and edit (untested))