added login and logout methods
update