Fixed NPE caused by println sentence in ShortenerController
Changed client and server validation
Some comments