headlights not working

You can fix all that "mess" much more correctly by cuttin out those butt connectors. "I" would just slide some shrink sleeve over each one and solder the wires together and shrink the sleeves over each one. That's way more acceptable and wouldn't take too long. You obviously must do it to one.