public void RunLogin()
        {
            while (true)
            {
                ClientInputProcessor inputProc = new ClientInputProcessor();
                var name = inputProc.ReadLoginInput();
                if (name == null) continue;

                try
                {
                    using (var client = new LoginServiceClient(m_ChatServiceNode))
                    {
                        var token = client.Login(name);
                        if (token != Guid.Empty)
                        {
                            ClientContext.Name = name;
                            ClientContext.Token = token;
                            Console.Clear();
                            ClientChatProcessor chat = new ClientChatProcessor();
                            chat.StartChat();
                        }
                        else
                        {
                            Console.WriteLine(UIMessages.LOGIN_ERROR);
                            return;
                        }
                    }
                }
                catch (Exception error)
                {
                    Console.Write("\nServer error: ");
                    Console.WriteLine(error.Message + "\n");
                }
            }
        }
        public void RunLogin()
        {
            while (true)
            {
                ClientInputProcessor inputProc = new ClientInputProcessor();
                var name = inputProc.ReadLoginInput();
                if (name == null)
                {
                    continue;
                }

                try
                {
                    using (var client = new LoginServiceClient(m_ChatServiceNode))
                    {
                        var token = client.Login(name);
                        if (token != Guid.Empty)
                        {
                            ClientContext.Name  = name;
                            ClientContext.Token = token;
                            Console.Clear();
                            ClientChatProcessor chat = new ClientChatProcessor();
                            chat.StartChat();
                        }
                        else
                        {
                            Console.WriteLine(UIMessages.LOGIN_ERROR);
                            return;
                        }
                    }
                }
                catch (Exception error)
                {
                    Console.Write("\nServer error: ");
                    Console.WriteLine(error.Message + "\n");
                }
            }
        }