simpleLogin undefined at logout in main.js