added confirmation logic, simple login/logout,