login logic stage #2, added Newtonsoft.Json