You can validate on the ‘input elements’-widgets (textbox, etc), or you can validate through the validation feedback action on a microflow.
You can read more on that here: https://docs.mendix.com/refguide/validation-feedback/