add readonly validator