title: CakePHP Form outside controller
body: <p>I have a login form in my header that talks to my users_controller but the form itself isn't in a view being generated by the users controller so I get two problems</p>
  
  <p>1.) The password field doesn't get treat like a password field and is just a normal text field</p>
  
  <p>2.) When submitting the form it just redirects to the login action</p>
  
  <p>Here is the code and it's used in BOTH the login view and in my header (so I know it works):</p>
  
  <pre><code>&lt;?php echo $this-&gt;Form-&gt;create(null, array('id' =&gt; 'loginform', 'type' =&gt; 'post',
          'url' =&gt; array('controller' =&gt; 'users', 'action' =&gt; 'login'))); ?&gt;
  
  &lt;fieldset id="login"&gt;
  
      &lt;ul class="clearfix"&gt;
          &lt;li id="li-username"&gt;
              &lt;?php echo $this-&gt;Form-&gt;input('username', array('label'=&gt;false,'placeholder'=&gt;'Username or email address')); ?&gt;
          &lt;/li&gt;
          &lt;li id="li-password"&gt;
              &lt;?php echo $this-&gt;Form-&gt;input('password', array('label'=&gt;false,'placeholder'=&gt;'Password')); ?&gt;
              &lt;span id="iforgot"&gt;&lt;?php echo $this-&gt;Html-&gt;link('?', 
              array('controller' =&gt; 'users', 'action' =&gt; 'forgotpassword'),  array('title' =&gt; 'Forgot your password?')); ?&gt;&lt;/span&gt;
          &lt;/li&gt;
          &lt;li id="li-submit"&gt;
              &lt;button type="submit" title="Log in"&gt;Log in &amp;#9658;&lt;/button&gt;
          &lt;/li&gt;
      &lt;/ul&gt;
  
  &lt;/fieldset&gt;
  
  &lt;?php echo $this-&gt;Form-&gt;end(); ?&gt;
  </code></pre>