DEV-70471 - Check is user is logged in
* fixed logout