Add demos: KeyStoreLogin, Krb5Login, NTLogin
fix some bugs.