Fix ActiveDirectory application

Typos fixed.
Added attribute 'isDeployed' to deploy the app only once.