Logout service. Session. Fix some issues