'Add an email confirmation field to a form description.
Arguments:
form_desc: A form description
Keyword Arguments:
required (bool): Whether this field is required; defaults to True'

def _add_confirm_email_field(self, form_desc, required=True):

    email_label = _(u'Confirm    Email')
    error_msg = accounts.REQUIRED_FIELD_CONFIRM_EMAIL_MSG
    form_desc.add_field('confirm_email', label=email_label, required=required, error_messages={'required': error_msg})
