Added some validations and limitation to the nested folders.