Making mistakes is a part of life, don't be sad if you made a mistake as long as you see the error of your ways and fix your habits. There's no point in being sad or angry about something you cannot control because you can't change the past, but you can better your future.