3.7 login component bug

Couldn't update github 3.7-branch
need idea for fix