Question: are switches allowed in bathrooms?
Answer: The NEC requires that switches not be installed within the confines of shower and tub areas, unless as part of a shower assembly. In other words, unless the switch is already built in to your shower assembly from the manufacturer, adding a switch inside a shower is a code violation.