fix main.js: data.username could be empty
Merge pull request #1 from coderaiser/patch-1

fix main.js: data.username could be empty