How to validate complete URL?