added possibility to logout