Added very slight logging, and handle gracefully if email isn't working. Also don't pull in all the guest models for the index page, and redirect to the login page on logout.