I have the following:
https://www.geeksforgeeks.org/form-required-attribute-with-a-custom-validation-message-in-html5/
Try it