Fix for showing multiple secure layers requiring different credentials

Addresses #41