Add url validation

Resolves #8