Improved coding style for LogOnHandler.