fix bug
login logout flow