title: Multiple form with same model name on single page cakephp
body: <p>I have two form on a single page: login form and register form. When I submit the register form, it validates both: form fields that are in login and registeration. How can I handle it if both form have the same model (user model)</p>
  
  <p>Register form</p>
  
  <pre><code>&lt;?php echo $this-&gt;Form-&gt;create('User', array('url' =&gt; array('controller' =&gt; 'users', 'action' =&gt; 'add'))); ?&gt;
  &lt;?php echo $this-&gt;Form-&gt;input('username', array('label' =&gt; false, 'div' =&gt; false, 'class' =&gt; 'reg_input'));?&gt;
  &lt;?php echo $this-&gt;Form-&gt;input('email', array('label' =&gt; false, 'div' =&gt; false, 'class' =&gt; 'reg_input'));?&gt;
  &lt;?php echo $this-&gt;Form-&gt;input('password', array('label' =&gt; false, 'div' =&gt; false, 'class' =&gt; 'reg_input'));?&gt;
  &lt;?php echo $this-&gt;Form-&gt;input('confirm_password', array('type' =&gt; 'password', 'label' =&gt; false, 'div' =&gt; false, 'class' =&gt; 'reg_input'));?&gt;
  &lt;?php echo $this-&gt;Form-&gt;submit(__('Submit', true), array ('class' =&gt; 'reg_button', 'div' =&gt; false)); 
    echo $this-&gt;Form-&gt;end();?&gt;
  </code></pre>
  
  <p>and Login form is below </p>
  
  <pre><code>  &lt;?php echo $this-&gt;Form-&gt;create('User', array('controller' =&gt; 'users', 'action' =&gt; 'login'))?&gt;
    &lt;?php echo $this-&gt;Form-&gt;input('User.username',array('label'=&gt;false,'div'=&gt;false, 'class' =&gt; 'reg_input'));?&gt;
    &lt;?php echo $this-&gt;Form-&gt;input('User.password',array('label'=&gt;false,'div'=&gt;false, 'class' =&gt; 'reg_input'));?&gt;
    &lt;?php echo $this-&gt;Form-&gt;submit(__('Log in', true), array ('class' =&gt; 'reg_button', 'div' =&gt; false)); ?&gt;
    &lt;?php echo $this-&gt;Form-&gt;end();?&gt;
  </code></pre>
  
  <p>When I submit registration form it validates both forms, I want to validate only the registration form.</p>
  
  <p>How can I handle that?</p>
  
  <p><img src="https://i.stack.imgur.com/KaOJs.png" alt="enter image description here"></p>