Fix login, logout and login use case