edit validity