almost login, but json examples have some problems