title: joomla user authentication by my own custom written form inputs
body: <p>I've been struggling to find out about user authentication using your own form elements.</p>
  
  <p>In order to make it clear, heres what i want to do.</p>
  
  <p>I'm going to have a button which is going to redirect to a page.
  Now, this page can be redirected to in the following ways.</p>
  
  <p>A popup opens where the user needs to enter their email address and password.
     My form is like this</p>
  
  <pre><code>    &lt;form action="userlogin.php" method="post"&gt;
      &lt;ul&gt;Email
          &lt;li&gt;&lt;input type="text" id="email" name="email" /&gt;&lt;/li&gt;
      &lt;/ul&gt;
      &lt;ul&gt;Password
          &lt;li&gt;&lt;input type="password" id="pass" name="pass" /&gt; &lt;/li&gt;
      &lt;/ul&gt;
  
      &lt;/form&gt;
  </code></pre>
  
  <p>The user clicks the submit button and if the email address and password exist then we have a successful login and if they dont then we add that user in the database and then redirect.</p>
  
  <p>I dont understand how to authenticate user login using this form i've mentioned about. Which file do i have to post it to and how can it work like a normal joomla login.</p>
  
  <p>Please do help.</p>
  
  <p>Thanks.</p>