I have a userSchema that looks like this:
userSchema
var userSchema = new Schema({ name: { type: String , required: true , validate: [val
The second verification password doesn't need to be submitted for registration. You could probably get away with validating the two fields are equal on the client-side.