fixed issue where user need to manually refresh login page
Merge pull request #18 from carriexu/master

fixed issue where user need to manually refresh login page