WIP logic for edit dialog
Added validation to edit dialog