% if c.form_errors and len(c.form_errors) > 0:

The following errors occurred:

% else:

The following errors occurred:

% endif