pub fn validate_url<T>(val: T) -> boolwhere T: AsRef<str>,
Validates whether the string given is a url