title: ValidatorError: Path `lastName` is required
body: <p>I'm new at Node.js and really a newbie at MongoDB.</p>
  <p>I'm trying to make an authentication system using Google OAuth 2.0 and passport.</p>
  <p>I keep getting this error:
  <code>Error: User validation failed: lastName: Path `lastName` is required.</code></p>
  <p>Can you help me? I got this code from GitHub and I'm trying to modify it, but this error doesn't let me continue my project.</p>
  <p>This is the problematic code:</p>
  <pre><code>const mongoose = require('mongoose')
  const User = require('../models/User')
  
  module.exports = function (passport) {
    passport.use(
      new GoogleStrategy(
        {
          clientID: process.env.GOOGLE_CLIENT_ID,
          clientSecret: process.env.GOOGLE_CLIENT_SECRET,
          callbackURL: '/auth/google/callback',
        },
        async (accessToken, refreshToken, profile, done) =&gt; {
          const newUser = {
            googleId: profile.id,
            displayName: profile.displayName,
            firstName: profile.name.givenName,
            lastName: profile.name.familyName,
            image: profile.photos[0].value,
          }
  
          try {
            let user = await User.findOne({ googleId: profile.id })
  
            if (user) {
              done(null, user)
            } else {
              user = await User.create(newUser)
              done(null, user)
            }
          } catch (err) {
            console.error(err)
          }
        }
      )
    )
  
    passport.serializeUser((user, done) =&gt; {
      done(null, user.id)
    })
  
    passport.deserializeUser((id, done) =&gt; {
      User.findById(id, (err, user) =&gt; done(err, user))
    })
  }
  </code></pre>