added login, logout