add read/write validator