GUI now checks for server connection, displays login screen if there is no connection