add login, logout methods