Add verification to edit dialog