update the ajax call & server url validation regex pattern