title: Email Domain Validation
body: <p>I am building an internal site for work and I only want users to be able to register with a work email as a safety measure. Below is effectively what I'm looking for, but plugging this in somewhere is pretty hack imo. What is the proper way to go about doing this? I thought Identity's (2.0) UserValidator had a lot more properties but I can only find 2 now..</p>
  
  <pre><code>if(Email.Text.Contains("@gmail.com"))
       //register user
  </code></pre>