def form_errors(form):
    """Collect form errors and return the error messages as a list."""
    error_messages = []
    for field, errors in form.errors.items():
        for error in errors:
            error_messages.append('%s: %s' % (
                getattr(form, field).label.text,
                error
            ))
    return error_messages