Title: Login page validation
Last modified: January 29, 2021

---

# Login page validation

 *  Resolved [Subhro](https://wordpress.org/support/users/subhro2321/)
 * (@subhro2321)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/login-page-validation/)
 * I am new out here and while going through docs, I find out that validation is
   important for security. So it would be a great help if you can guide me with 
   the validation code and also let me know where to put that code.
 * Thanks in advance!

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [5 years, 8 months ago](https://wordpress.org/support/topic/login-page-validation/#post-13976229)
 * What are you trying to validate? Please explain the context.
 *  Thread Starter [Subhro](https://wordpress.org/support/users/subhro2321/)
 * (@subhro2321)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/login-page-validation/#post-13976793)
 * I want to only allow gmail emails throughout the site. Like when a user logs 
   tries to change their email from Edit profile page, they have to put email with
   gmail.com for the email field to allow. Also with the comment form as well.
    -  This reply was modified 5 years, 8 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [5 years, 8 months ago](https://wordpress.org/support/topic/login-page-validation/#post-13976832)
 * See [https://wordpress.org/plugins/cm-email-blacklist/](https://wordpress.org/plugins/cm-email-blacklist/)
 *  Thread Starter [Subhro](https://wordpress.org/support/users/subhro2321/)
 * (@subhro2321)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/login-page-validation/#post-13976856)
 * Thats a great plugin but can’t it be possible without plugins? Cause I already
   have too many. So can you please guide me without plugin support please.
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [5 years, 8 months ago](https://wordpress.org/support/topic/login-page-validation/#post-13976887)
 * Sure, it’s possible. You’d have to write the code. But code is code and you’d
   wind up writing a plugin anyway. Unless your goal is to learn how to code this(
   and all that comes with it), use a plugin.
 *  Thread Starter [Subhro](https://wordpress.org/support/users/subhro2321/)
 * (@subhro2321)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/login-page-validation/#post-13976896)
 * Alright! I got your point.
 * Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)

 The topic ‘Login page validation’ is closed to new replies.

 * In: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
 * 6 replies
 * 2 participants
 * Last reply from: [Subhro](https://wordpress.org/support/users/subhro2321/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/login-page-validation/#post-13976896)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
