corrected error rendering home page when no-one is logged in