Added validator utility module, for fast input validation.