validation on setting