In the top of your action, add the following lines:
if(isset($_POST['ajax']) && $_POST['ajax']==='user-form'){ echo CActiveForm::validate($model); Yii::app()->end();}