title: ASP.NET Identity : Cannot sign-in existed user
body: <p>I use <code>ASP.NET Identity 2</code> in an <code>MVC 5</code> project and there are some users in <code>AspNetUsers</code> table. Although these users have been created and validated, it is impossible to retrieve any of them bu using:</p>
  
  <pre><code>var user = await UserManager.FindByNameAsync(model.Email);
  </code></pre>
  
  <p>Please note that I used email addressed for <code>UserName</code> as <code>Email</code> fields and it is ok to use email address for retrieving users.</p>
  
  <p>On the other hand, I can retrieve the users by:</p>
  
  <pre><code>ApplicationUser user = db.Users.FirstOrDefault(m =&gt; m.Email == model.Email);
  </code></pre>
  
  <p>But, I cannot make sign-in the user with the following code and the result is always <strong>Failure</strong>.</p>
  
  <pre><code>var result = await SignInManager.PasswordSignInAsync(user.Email, 
      model.Password, model.RememberMe, shouldLockout: false);
  </code></pre>
  
  <p>Any idea to fix the problem?</p>