Added an extra state, "valid" to mark a document that has been validated but not yet published.