edit validation