fixed login issue:
- if you try to login, but the server is not available, you will get in offlinemode now
modified login dialog to be not able to be canceled on click outside