URL validating, error handling