CRAFTERCMS-894: added pattern to input control

Added a new constraints that validates user input based on regex configured