add pattern validation for url