Cake PHP - Form Validiation doesn't work

Hi everybody,

my CakePHP (1.2.5.) doesn't validate my form correct.


gives me always a true value back. I can't find the problem. The label for UserData.nichname works.

That's the View:

echo $form->create('UserData');
echo $form->error('UserData.nick_name');
echo $form->input('UserData.nick_name', array('id' => 'UserDatanick_name', 'rule' => 'alphaNumeric', 'label' =>'Nickname:', 'error' =>'false'));
echo $form->end( array( 'label' => ' Save ') );

Here is my Controller:

class UserDatasController extends AppController {
  var $name = 'UserDatas';
  function add(){
     if (!empty ($this->data)){
         if ($this->UserData->save($this->data)){
             $this->Session->setFlash('input is valid');
         } else {
             $this->Session->setFlash('input is not valid');

The rules for are not in the model, that's the reaseon i don't post it.

What else is necessary for a validation?

Thanks in advance