Log authentication errors.
Make a fancy generator.