validate install and add permission