Fixed login bug.
Merge branch 'test' into dev