title: MembershipCreateUserException - The username supplied is invalid
body: <p>On this line i am getting an exception - </p>
  
  <pre><code>OAuthWebSecurity.CreateOrUpdateAccount(provider, providerUserId, model.UserName);
  </code></pre>
  
  <p>System.Web.Security.MembershipCreateUserException: The username supplied is invalid.</p>
  
  <p>The data going into this is </p>
  
  <ul>
  <li>provider - "facebook"</li>
  <li>providerUserId - "1321311387573991"</li>
  <li>model.UserName - "Max Payne"</li>
  </ul>
  
  <p>The initialization works fine using </p>
  
  <pre><code>WebSecurity.InitializeDatabaseConnection("club", "User", "UserID", "UserName", autoCreateTables: true);
  </code></pre>
  
  <p>I cannot find any examples of why it says the username is invalid?
  Is there a criteria somewhere that defines what is a correct user name?</p>