In this first field, we wrote a custom validation which only accepts alphanumeric values and "-". Try entering something different to see the custom error message.
Sometimes you have situations where you can't just make a field required, because for example the user only needs to fill out one or the other. You can solve this situation with a dummy field and a custom validation function. Hit submit without entering data to see the behaviour. Than add data in only one field and try again.
In this example we use error codes to tell the user which strong password rules are fulfilled.
Often you want the same validation for all fields with the same type, for example emails or phone numbers. This can be achived with global type validations on the Form component: