check the nonce and uri
Merge pull request #2 from sczi/fixlogin

check the nonce and uri