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