Headlight switch , is it the cause? or the curse?

You have to be sure that the connector for the headlight switch is in good shape. I've had a few that got so hot that they melted and wouldn't hold the terminals in place or with enough continuity.

Always be sure that all of the connections in there are good before installing into dash.