Use set_user instead of login.