php – wordpress email checker on domain


I need a email verification when a users/admin logs into wp-admin. So it checks if the domain is @gmail.com and when is not i have functions is this possible?

I made it with id checker but is was not really user friendly and I only want @hostname.com the see a page