the drawing below is very simple. THe resistor is part of the light switch you talk about. The light section has been left off this drawing. Note that the reistor has nothing to do with the power wire. It is a ground only. you have two wires mixed up on the light switch.