Adds required elements validation. Updates uninstall and install hooks