fixed bug on first load with no user id generated
Merge branch 'master' of https://github.com/mtleung/iems5722.git