Instead of manually working out a form validation I strongly recommend to rely on libraries, like Yup for instance.
Take a look at the official React Bootstrap documentation, you'll find great examples to validate your form. There's also plenty of great documentation out there like this article, good luck!