Redirect the user to login page if they are not logged in on inbox and settings pages