ASP.NET Identity logic.