Validate data input using Regex before the API call.
Validate data input using Regex before the API call.