Fixed the problem which login failed in case of no password.
Merge branch 'fix_no_password'