Factor out renderValidity from editor