Adding validation for url