Force Ajax Validation on form submit?

Hello,

I am currently working on a registration form with client validation and Ajax validation.

The Problem is, I have some custom validators that only work via Ajax, so if the user enters a username that is valid but not available and clicks submit, the error disappears.

Is there a way to force Ajax Validation on form submit, regardless of existing errors that can be validated on the client side?

Any other ideas?

Thanks

use validateOnSubmit - http://www.yiiframework.com/doc/api/1.1/CActiveForm#clientOptions-detail

this should help http://www.yiiframework.com/wiki/258/common-yii-questions/#hh6