fix login/logout function.
Merge remote-tracking branch 'beauty/master'
Merge pull request #29 from zhou5211/master

修复登录功能