This page shows you how to accomplish the same using hidden fields.Hidden input fields are form fields that are not visible.On submitting this form, these fields are validated in server side PHP before adding it to the user database.In this example, all the registration form fields are mandatory.Otherwise, you are allowing attackers to repeatedly attack your application until they find a vulnerability that you haven't protected against.
In this tutorial, I have an example for creating a new user account using a registration form.
However, You should always customize the validation error messages.
If you imagine form as a dialog between your website and your user, the messages play an important role.
See a complete demo @Codepen The messages parameter is optional.
If you skip the messages parameter, the plugin will display default, auto-generated messages.