fix broken page when user is logged out