Add a catch in case the user is logged out while viewing the page