Improve authentication logging.