Improve login handling and connection status reporting. Minor fixes