Chat and Login bugfixes

Login does not freeze the UI when the connection to the server is down.
The Chat does not crash the app when closing anymore, hooray! :)