Change index.html of accounts and send login data using JSON