Learn from your mistakes and set yourself up for future financial success.