title: Form validation not working properly in cakePHP 2.4.6
body: <p>In version 2.2.1 I could validate a form using rules and custom messages like below. But somehow the password rule isn't working as of version 2.3. Any help what I might be doing wrong here?</p>
  
  <p>Model:</p>
  
  <pre><code>class User extends AppModel {
  public $validate = array(
  'password' =&gt; array(
      'rule' =&gt; array ('between', 5, 10 ),
          'message' =&gt; 'Password must between 5 and 10 characters long'
      )
  );
  public function beforeSave($options = array()) {
  
      $this-&gt;data['User']['password'] = Security::hash($this-&gt;data['User']['password'], 'sha1', true);
  
  return true;
  
  }
  }
  </code></pre>
  
  <p>View:</p>
  
  <pre><code>    &lt;?php
  
  echo $this-&gt;Form-&gt;create();
  echo $this-&gt;Form-&gt;input('firstname', array('label' =&gt; 'First name'));
  echo $this-&gt;Form-&gt;input('lastname', array('label' =&gt; 'Last name'));
  echo $this-&gt;Form-&gt;input('adminrole', array('type' =&gt; 'checkbox', 'label' =&gt; 'Is admin?&lt;br /&gt;&lt;br /&gt;'));
  echo $this-&gt;Form-&gt;input('email', array('label' =&gt; 'E-mail address'));
  echo $this-&gt;Form-&gt;input('password', array('label' =&gt; 'Password'));
  echo $this-&gt;Form-&gt;input('picturethumb', array('type' =&gt; 'file', 'label' =&gt; 'Profile picture'));
  echo $this-&gt;Form-&gt;end('Save');
  
  ?&gt;
  </code></pre>
  
  <p>Please bare in mind that this exact same code validates correctly in 2.2.1</p>
  
  <p>Controller:</p>
  
  <pre><code>    class UsersController extends AppController {
  
      public function index() {
          $users = $this-&gt;User-&gt;find('all');
          $this-&gt;set('users', $users);
  
      }
      public function add() {
          if ($this-&gt;request-&gt;is('post')) {
              $this-&gt;User-&gt;save($this-&gt;request-&gt;data);
              $this-&gt;redirect('/users');
          }
  
      }
  }
  </code></pre>