title: How to handle the error if `To` number is valid or not?
body: <p>What im trying to do is to throw an error message if the user has entered an invalid number.</p>
  <p>controller/auth.js</p>
  <pre><code>  const otp = await client.verify
      .services(serviceId)
      .verifications.create({ to: phone, channel: &quot;sms&quot; });
    
   // if phone is invalid{
      //return error }
  
    res.status(200,`The user has been created! Otp has been sent to ${phone} number!`).json({
      success: true,
      data: user,  
      otp: otp,
    });
  </code></pre>
  <p>What condition can I use to check the phone if it's invalid</p>