Section 208-81National Electrical Code requires all bathroom outlets to be protected by a Ground Fault Circuit Interrupter.
E3901.7 Wet locations. A switch or circuit breaker located in a wet location or outside of a building shall be enclosed in a weatherproof enclosure or cabinet. Switches shall not be installed within wet locations in tub or shower spaces unless installed as part of a listed tub or shower assembly.
National Electrical Code, Section 410-57(d), Outlets and Switches are not allowed in the Bath Tub, Shower or Spa area. Receptacles may be installed below the tub to attach the cord from a spa. Switches for a spa tub are required to be a minimum of 5'-0" from the tub. See also NEC 680.43 Indoor Installations for Spas and Hot Tubs. NEC, 410.04(D) Bathtub and Shower Areas. No parts of cord-connected luminaires (fixtures), hanging luminaires (fixtures), lighting track, pendants, or ceiling-suspended (paddle) fans shall be located within a zone measured 900 mm (3 ft) horizontally and 2.5 m (8 ft) vertically from the top of the bathtub rim or shower stall threshold. This zone is all encompassing and includes the zone directly over the tub or shower stall.