You’re not handling any potential errors in your code. If regForm is not valid, you’re not doing anything to see what those errors might be, so you don’t know that your form is working.
See How errors are displayed, More granular output, and for even more details, Form and field validation