W4: login, logout