master: login process with json file