Added logout and sessions