My concern is for the heat dissipation from the 5W resistor.

Maybe the secondary of the tranformer can be used with lower waste of energy.

Ioannis