*authentication: * failed result code
*logging: refactoring