完善登陆逻辑

将简单的完善登陆错误逻辑
Merge pull request #4 from coolchenyi/master

pull the change