Fix URL validation bug for simpler validation