Fixed string-based declaration of auth service class to be class-based.
Addressed optionality of the security module.