AC-15: Added possibility to logout.