Bug fixes

Don't crash if the log file can't be written to
Make tenantEmail global so we can actually re-validate their token