'Add a password 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_password_field(self, form_desc, required=True):

    password_label = _(u'Password')
    form_desc.add_field('password', label=password_label, field_type='password', restrictions={'min_length': accounts.PASSWORD_MIN_LENGTH, 'max_length': accounts.PASSWORD_MAX_LENGTH}, required=required)
