use login name to verify password

fix #12361 

cc @blizzz