Yii insert duplicate row into table

Does anyone have the problem like my problem? or can anyone help to give me a suggestion?

I have created a user CRUD with table user, when i create a new user it is inserted 2 times with different id and the same data.

Please see the screenshot for details


Probably caused by AJAX validation enabled on the form and disabled (or without proper handling) in the conroller.