Added URL validation to the setCallbackURL function