Handle logout
Handle sessions
Better state handling