added logout function
update