The X-Men cinematic universe is one that is jumbled up more than a ball of rubber bands. There are continuity errors, character errors, and things that are just downright confusing following the events of X3 and definitely including Origins.
But that's where Bryan Singer comes in! He reins in the X-Men series of movies back to a continuity that makes sense, if you don't want to question every little detail, does away with the aforementioned two movies as far as continuity goes, and provides us with a solid future for the franchise to continue.
All within two hours and eleven minutes. Welcome to X-Men: Days of Future Past!