title: CodeIgniter - Login form on each page
body: <p>Ive run into a little problem with an application im trying to write with CodeIgniter, basically i want to have a login form on each page up the very top of the site, but im finding it difficult to figure out the logic with the validation function.</p>
  
  <p>From my understanding, the validation rules ( set_rules ) have to be set from the controller, now if i want a login form on each page, does this mean i have to set the rules on each and every controller i write? this seems a little odd. can i set the validation rules from inside the view?</p>
  
  <p>What i have at the moment is one view for the login box, which i call from my view with the </p>
  
  <pre><code>&lt;?php $this-&gt;load-&gt;view('includes/members_login'); ?&gt;
  </code></pre>
  
  <p>command.</p>
  
  <p>Any help or guidance on this would be great .... im quite stuck.</p>
  
  <p>Cheers,</p>