update login code
Merge pull request #39 from mts-app/mts-app_12122014

update login code