Changing logged_in? to check updated_by_last_action?

I think the logged_in? method is always returning true. If the desired behavior is to only login to the registry once per chef run, does checking @new_resource.updated_by_last_action? do the trick.