Validate URL funtion added.