Added URL validator method for both :to and :shortened.