Added code from Bluemix LID services sample into the application