change daemon to send username in the form of JSON , {'username':'<some user id>'}. changes must be reflected in keystore.js