When installing switches and outlets in a bathroom it is better, and in some areas required, that you use a GFCI certified outlet and switch. These devices are designed with a breaker built in so that the power goes off if the device gets wet. This allows for a slimmer chance of electrocution in those wet rooms.