Fix broken JSON in login file and add comments