validation for write only