login changed to be compatible with contentChanger.js