Validation done. Added logging.