Revert "delete login-factory + routes"

This reverts commit 4ea69900f9f962973e31ff6421806fa4da3167c2.
Revert "Revert "delete login-factory + routes""

This reverts commit d69f4dd050d384a12d1aabdcb775f665e70381cc.