You can use the BizForm control in your own web part and use one of the event handlers in this article https://docs.kentico.com/display/K8/Reference+-+Global+system+events#Reference-Globalsystemevents-BizFormItemEvents
There you can do server side validation and either submit the form or stop the process. There are a couple of other article in the documentation around this like https://docs.kentico.com/display/K8/Working+with+form+data+using+the+API#WorkingwithformdatausingtheAPI-Handlingformevents