Added logout and control for session and logs