well its done now. Fixed the bug.
Merge pull request #57 from JustDuckItAll/bugfix_closing_edit_tab

Closing edit tab validation bug