title: Microsoft.AspNetCore.Identity.UserManager:Warning: User validation failed: InvalidUserName;InvalidEmail
body: <p>I need to create a user with UserName, FirstName and LastName and Email fields. I'm using Mysql database and Pomelo package. Migration and DB update are working fine.</p>
  <p>This code results in failure.</p>
  <pre><code>public async Task&lt;IActionResult&gt; CreateUserAsync()
      {
          var user = new ApplicationUser(
              UserName: &quot;blablabla&quot;,
              FirstName: &quot;blablabla&quot;,
              LastName: &quot;blablabla&quot;,
              Email: &quot;blablabla@gmail.com&quot;
          );
          var successful = await mUserManager.CreateAsync(user
              , &quot;Pasword123456#&quot;);
          if(successful.Succeeded)
              return Content(&quot;User was created&quot;, &quot;text/html&quot;);
  
          return Content(&quot;User created FAILED&quot;, &quot;text/html&quot;);
      }
  }
  </code></pre>
  <p>The table in the database is empty</p>
  <blockquote>
  <p>+-----------------------+ | Tables_in_calendario  |
  +-----------------------+ | __efmigrationshistory | | aspnetroleclaims      | | aspnetroles           | | aspnetuserclaims      | |
  aspnetuserlogins      | | aspnetuserroles       | | aspnetusers<br />
  | | aspnetusertokens      | | events                | | usuarios<br />
  |
  +-----------------------+
  mysql&gt; select * from aspnetusers;
  Empty set (0.00 sec)</p>
  </blockquote>
  <p>I have no idea how to make it work.</p>
  <p>In debug mode that is the only information I have.
  <a href="https://i.stack.imgur.com/JXwae.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JXwae.png" alt="Debug mode" /></a></p>