manage_users: login_as() fixes