<div class="CMDM">
<ul class="errors">
<?php foreach ($errors as $error): ?>
    <li><?php echo $error; ?></li>

<?php endforeach; ?>
</ul>
<a href="javascript:history.back(-1)"><?php _e('Go back to previous page', 'cm-answers'); ?></a>
</div>