Ignore loggingIn status for the moment

Looks like the onbeforeunload event is not called when the popup
is closed
Refactor load user data
Load user data when opening the page