Checking for duplicates for creating a new folder.
Deleteing the selected folder