[yast/yast-users] 39e424: Move shared validation logic to a helper