# Form validation when user tries to use social logins with emails that already exist

**URL:** <https://community.auth0.com/t/form-validation-when-user-tries-to-use-social-logins-with-emails-that-already-exist/59964>\
**Category:** Get Help\
**Created:** [March 24, 2021, 12:17am UTC](https://community.auth0.com/t/form-validation-when-user-tries-to-use-social-logins-with-emails-that-already-exist/59964 "2021-03-24T00:17:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcodes](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mcodes/32/25568_2.png) [@mcodes](https://community.auth0.com/u/mcodes)\
**Post date:** [March 24, 2021, 12:17am UTC](https://community.auth0.com/t/form-validation-when-user-tries-to-use-social-logins-with-emails-that-already-exist/59964/1 "2021-03-24T00:17:19Z")

</div>

Currently, if I sign up a user with Google and use that same Gmail address to sign up with email and password there is no validation done to make sure that the email is not already in use.

I can use a pre-registration to check but that only works in one direction because the hooks only fire with email/password logins but not with social logins.

Also, I cant use a rule because those run after users are already authenticated.

So what can I do? How do other people deal with this or do they just allow multiple accounts with the same email addresses. I don’t find that allowing this would be good practice.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [March 24, 2021, 8:06pm UTC](https://community.auth0.com/t/form-validation-when-user-tries-to-use-social-logins-with-emails-that-already-exist/59964/3 "2021-03-24T20:06:18Z")

</div>

Hi @mcodes,

Account linking is usually the suggested solution for this scenario. This allows users to log in with any identity provider (social, database, etc) and links all of the accounts.

> **[User Account Linking](https://auth0.com/docs/manage-users/user-accounts/user-account-linking)**
>
> Understand how user accounts can be linked in Auth0 from various identity providers.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [April 8, 2021, 8:06pm UTC](https://community.auth0.com/t/form-validation-when-user-tries-to-use-social-logins-with-emails-that-already-exist/59964/4 "2021-04-08T20:06:44Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
