Added check to validate short url.