Keep your bad relationship history from repeating itself.