Change not logged in to an error rather than a redirect