Fixes #1694, adds loading screen when signing out

Fixes #1694 , adds loading screen when signing out