How to display the validation errors?
Right now the code just ignores models with validation errors.
foreach($_POST['Task'] as $taskData)
{
$model = new Task();
$model->setAttributes($taskData);
if($model->validate())
$models[] = $model;
}