Fix "login is undefined"