Validate user input

As a Haskell tutorial with @esmooov, we hacked on adding validating user input to your sample. Hope it's useful!