How to make personalization fields mandatory before adding to cart?

I have personalization fields marked as required but you can add to cart without completing the fields. How can I change that?

website URL is www.jsbuildcompany.com

Hello there

this looks great.

for the required you need to add the class required

example:


Here’s an example of one I have. So this is incorrect? I used the Shopify UI Elements Generator

Personalization Text