Fixing url validation to match django's