First, I want to say, "we've all been there" and if someone says they haven't they aren't being truthful.
Secondly, our body weights fluctuate all the time. The scale is one of the most unreliable gauges we can use. I try to remember that myself. I try to use other things like how my clothes are fitting, and my attitude, energy levels, etc. as a gauge.
Thirdly, I've really tried to hammer into my head that I'm doing this for the rest of my life. None of us are perfect, and we can't expect ourselves to never get distracted. Life happens. Stress. Job problems. Family problems. How we react to these things can be a big issue. I've found that writing out a plan of action when some crap happens has helped me a lot. I've also written out my goals and put them where I can see them daily. This is positive reinforcement and it is a wonderful tool!
I'm glad to see that you're not giving up. It's good that you came here and let us know your feelings. YOU CAN DO THIS!! Venting is a good thing! Then you don't go to eating! KEEP UP THE GOOD WORK!!