title: Cakephp validations not working
body: <p>Validations are working but form is not getting submitted and data is not inserted:</p>
  
  <p>addgroup.ctp:</p>
  
  <pre><code>echo $form-&gt;create('Group', array('url' =&gt; array('controller' =&gt; 'admin', 'action' =&gt;'addgroup'), 'onSubmit' =&gt; 'return Validate()'));
  
  echo $form-&gt;input('name',array('label' =&gt; false));
  
   &lt;input type="submit"  value="Submit"/&gt;
  
   &lt;input type="button" value="Cancel"/&gt;
  </code></pre>
  
  <p>Group Model:</p>
  
  <pre><code>var $validate = array(
  
      'name' =&gt; array(    
          'isRequired' =&gt; array(
              'rule' =&gt; 'required',
              'message' =&gt; 'Enter group name.'
          ),      
          'isUnique' =&gt; array(
              'rule' =&gt; 'isUnique',               
              'message' =&gt; 'This group name has already been taken.'
          ),
      ),
  );
  </code></pre>
  
  <p>in controller:</p>
  
  <pre><code>$this-&gt;Group-&gt;save($this-&gt;data,array('validate' =&gt; true)
  </code></pre>
  
  <p>If I make any empty entry or duplicate entry it gives errormessge, 
  but if I make valid entries then also form gives error-message, 
  What m I missing here?</p>