Adds URL checks when creating shortened URL