changed master to send json object for login