Made the error message look a bit nicer, and fixed an uninitialized variable in log/views.py