Installed new fixture. Power is getting to fixture. switch not turning power on and off
I installed a new two light wall fixture in my bathroom. I connected whit to white black to black and ground to ground. I am getting power to the fixture because I can screw in a light bulb and it lights up. At the switch it has a red wire connected to a screw at the top of the switch and two blacks that come into the box connected together attached to the bottom screw on the switch. Two white wires come into the box and are attatched to each other with a nut.
Can anyone help?