use angular-cookies and logout