Switches need some data sanitized. Also used IndexError instead of KeyError, and add handling for interfaces with slashes in the name. The name 'verified' also fits better than 'authenticated'