'Check to make sure password fields match.'

def clean(self):

    data = super(forms.Form, self).clean()
    if (('password' in data) and ('confirm_password' in data)):
        if (data['password'] != data['confirm_password']):
            raise ValidationError(_('Passwords    do    not    match.'))
    return data
