added protected email functionality