Tweaks to Microsoft Account login

* correct window size
* support for Logout()
* only show login window when actually needed