if we are logged out and do ajax, we can redirect to login page.