Updated reset pin function to use email