def validate(self, *args, **kwargs):
valid = FlaskForm.validate(self, *args, **kwargs)<EOL>if not valid:<EOL><INDENT>logging.debug("<STR_LIT>"<EOL>"<STR_LIT>".format(self.errors))<EOL>return valid<EOL><DEDENT>return self.validate_ldap()<EOL>
Validates the form by calling `validate` on each field, passing any
extra `Form.validate_<fieldname>` validators to the field validator.

also calls `validate_ldap`