Added validator library. Added validation to one of the handlers. Added logging.