My user schema is the below.
var userSchema=mongoose.Schema({ //name:{type:String}, username: {type:String, required:true, unique:true}, password: