added validation to random short url