validation for various url inputs