my_list = [{:ok, "asdf"}, {:error, "username errorstatus"}, {:ok, "xxxzzz"}]
Map.new(Enum.group_by(my_list, fn {k, _} -> k end), fn {key, tuples} -> {key, List.last(tuples)} end) |> IO.puts