Using ToastHandler and ToastValidationProvider classes to validations