# Login page should validate email against whitelist before Create Account is clicked

**URL:** <https://meta.discourse.org/t/login-page-should-validate-email-against-whitelist-before-create-account-is-clicked/36523>\
**Category:** UX\
**Created:** [2015年十二月10日 11:05 UTC](https://meta.discourse.org/t/login-page-should-validate-email-against-whitelist-before-create-account-is-clicked/36523 "2015-12-10T11:05:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)\
**Post date:** [2015年十二月10日 11:05 UTC](https://meta.discourse.org/t/login-page-should-validate-email-against-whitelist-before-create-account-is-clicked/36523/1 "2015-12-10T11:05:34Z")

</div>

When a site is configured to only allow login from email addresses with a particular domain, the sign up screen done properly prevent creating accounts with an email address from another domain.

See the current flow here.

```
1. Site setting is configured to only allow email from your domain:

```

 ![](https://global.discourse-cdn.com/meta/original/3X/7/8/78f88e6cb56166091746e344c13bb61c4e6b02b2.png)

```
2. User tries to sign up with a different domain, form says email is valid:

```

 ![](https://global.discourse-cdn.com/meta/original/3X/4/0/402e83c6a7261c7d171ed20f1d6d0e7a133bace7.png)

```
3. User is told email from that domain not allowed after clicking Create Account

```

 ![](https://global.discourse-cdn.com/meta/original/3X/c/b/cbb0b9e14a5d9004c252c66d9f6f1019aa16d5d9.png)

It’d be a better user experience if the client-side validation showed the problem in step 1, before the Create Account button is clicked.
