set validation to instance level