Revert "Revert "add sign in popup post processing""

This reverts commit 734fa685847bc3f2b985731be70fe67a50e4dc64.