Melting usually means a short, the 2 main things to check for.
The + and - wires are all hooked correctly on hub, headlight, and tail light. The Sanyo hub grounds at both the connector and frame. A little pitchfork symbol is often used for - which is the ground.
Check for a stray strand of wire between the connections on the tail light.