add core data
update logout