refactor handlePost, handle blank short url with random urls, reuse generated random urls, save http protocol if no protocol was provided