When a normal form in CakePHP is submitted, if it fails model validation, it puts
<div class="error-message">_validation error_</div>
after each input in the form that has an error. How can you incorporate this into forms that are submitted with AJAX?