user authantication problem

how to add some validation which check that the user name you want to enter is already exist in database …

thanks


            array('UserName', 'unique',

                'on'=>'insert,update,signup',

                'message'=>t('Not available')

            ),



check the CExistValidator - http://www.yiiframework.com/doc/api/CExistValidator

thank u brother. you have solved my problem.