fix bug about login session