     case Cluster.register_node(node) do
       :ok ->
         update_cluster(node, Config.is_master?)
+        Logger.info "Node '#{node["alias"]}' registered to cluster."
 
       :node_exists ->
-        Logger.error "Node with alias: '#{node["alias"]}' already exists"
+        Logger.error "Node '#{node["alias"]}' already exists."
     end
   end
 

        publish_message(%{alias: aliaz}, "UNREGISTER_NODE", node.alias)
      end)
    end
  end

  @doc """

  end
  defp notify_cluster_for_new_user(_, false), do: nil

  defp notify_cluster_for_removed_user(aliaz, id, true) do
    Cluster.nodes
    |> Enum.reject(fn node -> Config.alias() == node.alias end)
    |> Enum.each(fn node ->
      publish_message(%{alias: aliaz, id: id}, "REMOVE_USER", node.alias)
    end)
  end
  defp notify_cluster_for_removed_user(_, _, false), do: nil

end
