Resistor overheats

You need a higher power dissipation rated resistor, like 1/2W vs the small 1/8W part you're likely using, or a higher value resistor to let less current flow so the resistor does not have to dissipate so much power.