title: ASP.NET FormsAuthentication does not use default MembershipProvider
body: <p>I have created a BasicMembershipProvider class that inherits from MembershipProvider, when implemented, the ValidateUser does not get called. This is my setup:</p>
  
  <p>web.config</p>
  
  <pre><code>&lt;membership defaultProvider="BasicMembershipProvider"&gt;
    &lt;providers&gt;
      &lt;clear/&gt;
      &lt;add name="BasicMembershipProvider" type="MyMVCProject.Providers.BasicMembershipProvider"/&gt;
    &lt;/providers&gt;
  &lt;/membership&gt;
  </code></pre>
  
  <p>BasicMembershipProvider.cs</p>
  
  <pre><code>public class BasicMembershipProvider : MembershipProvider
  {       
    //THIS FUNCTION NEVER GETS CALLED
    public override bool ValidateUser(string email, string password)
    {
         //Do custom checks.
    }
  }
  </code></pre>
  
  <p>Controller</p>
  
  <pre><code>FormsAuthentication.Authenticate(model.Email, model.Password)
  </code></pre>
  
  <p>Is this the way to go about overriding the MembershipProvider with my own membership logic? If so, why doesn't the overidden function <code>ValidateUser</code> gets called whenever I call <code>FormsAuthentication.Authenticate()</code>?</p>