Add option to show errors only to logged in users

We wanted the option of seeing the errors displayed in the output, but hidden to anyone not logged in to the site. This change makes that an option.