The code is,
const userSchema = new mongoose.Schema({ email: { type: String, required: true, }, password: { type: String, required: true