write login_data.js

- resolves #413