The entire series revolves around Ted looking for the love of his life and how Robin made Barney a better person. For Ted to end up being married to Robin makes the entire series moot. They should have made Episode 22 the final episode. That would have made more sense and been true to the show.