UIKernel supports client-side and server-side validation.
To define the server-side validation, we’re going to use UIKernel validator.
The field method accepts two arguments: a field name and a function for validation. Here, we’ve used
synchronous validators provided by UIKernel. There are also asynchronous validators.
You can read more about them here.