Corrected some bug about the last commit on login...

Forget to change some variables name in refactoring .