Added rudimentary url checking