Update getEmail to the new signature